using System;
using Chatu.ControlLider.Web.Models.Common;

namespace Chatu.ControlLider.Web.Models.Domain
{
    public class EmployeeAttendaceItem
    {
        public DateTime? InDate { get; set; }
        public DateTime? OutDate { get; set; }
        public double? Guardia { get; set; }
        public double? Bono { get; set; }
        public int? Ticket { get; set; }

        public string ValueToReport(string reportName)
        {
            string toReturn = null;

            switch(reportName)
            {
                case "Guardias":
                    toReturn =  Guardia.ToGuardiaValue();
                    break;
                case "Bonos":
                    toReturn = Bono.ToBonoValue();
                    break;
                case "Cestatickets":
                    toReturn = Ticket.Value.ToString();
                    break;
            }

            return toReturn;
        }
    }
}